import { createRouter, createWebHistory } from 'vue-router';

// 导入组件
import MyDemoMainPage from "@/a_my_demo/pages/MyDemoMainPage";
import MainPage from "@/pages/MainPage.vue";
import CharacKnowl from "@/pages/CharacKnowl.vue";
import TestGpt from "@/pages/TestGpt.vue";

//路由路径
const routes = [
    {
        path: '/',
        name: 'mainPage',
        component: MainPage
    },
    {
        path: '/myDemo',
        name: 'myDemo',
        component: MyDemoMainPage
    },
    {
        path: '/characKnowl',
        name: 'characKnowl',
        component: CharacKnowl,
    },
    {
        path: '/testGpt',
        name: 'testGpt',
        component: TestGpt,
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;